import axios from "../config.js";

/**
 * 查询所有用户信息
 * @returns {Promise<unknown>}
 */
export const findAll = data => {
    return axios({
        url: "/demo/manager/findAll",
        method: "post",
        params: data
    });
};

/**
 * 通过id查找单个数据信息
 * @returns {Promise<unknown>}
 */
export const findOne = (data) => {
    return axios({
        url: "/demo/manager/findOne/" ,
        method: "post",
        data
    });
};
export const login = (data) => {
    return axios({
        url: "/demo/manager/login/" ,
        method: "post",
        data
    });
};



